package com.yanqu.road.entity.log.cross.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_feast_log_pvp_kill", dataUpload = true, desc = "山河乐宴-pvp战斗", eventName = "shfete_fight", autoSave = true, uploadCk = true, isCross = true)
public class LogFeastPvpKill extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "玩家", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "层数", dataAttribute = "shfete_layer")
    private int placeId;

    @FieldTypeAnnotation(desc = "当前击败人数", dataAttribute = "shfete_fightnum")
    private int killCnt;

    @FieldTypeAnnotation(desc = "当前被击败人数", dataAttribute = "shfete_befignum")
    private int reviveCnt;

    @FieldTypeAnnotation(desc = "才力", dataAttribute = "shfete_ability")
    private long powerVal;

    @FieldTypeAnnotation(desc = "称号", dataAttribute = "shfete_tit")
    private int stateId;

    @FieldTypeAnnotation(desc = "击杀用户id", dataAttribute = "shfete_fightid")
    private long attackedUserId;

    @FieldTypeAnnotation(desc = "被击杀用户才力值", dataAttribute = "shfete_otherabi")
    private long attackedPowerVal;

    @FieldTypeAnnotation(desc = "被击杀用户称号id", dataAttribute = "shfete_othertit")
    private int attackedStateId;

    @FieldTypeAnnotation(desc = "增加积分", dataAttribute = "shfete_getscore")
    private long addScore;

    @FieldTypeAnnotation(desc = "入库时间")
    private Date logTime;

    public LogFeastPvpKill(int activityId, int round, long userId, int placeId, int killCnt, int reviveCnt, long powerVal, int stateId, long attackedUserId, long attackedPowerVal, int attackedStateId, long addScore) {
        this.activityId = activityId;
        this.round = round;
        this.userId = userId;
        this.placeId = placeId;
        this.killCnt = killCnt;
        this.reviveCnt = reviveCnt;
        this.powerVal = powerVal;
        this.stateId = stateId;
        this.attackedUserId = attackedUserId;
        this.attackedPowerVal = attackedPowerVal;
        this.attackedStateId = attackedStateId;
        this.addScore = addScore;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPlaceId() {
        return placeId;
    }

    public void setPlaceId(int placeId) {
        this.placeId = placeId;
    }

    public int getKillCnt() {
        return killCnt;
    }

    public void setKillCnt(int killCnt) {
        this.killCnt = killCnt;
    }

    public int getReviveCnt() {
        return reviveCnt;
    }

    public void setReviveCnt(int reviveCnt) {
        this.reviveCnt = reviveCnt;
    }

    public long getPowerVal() {
        return powerVal;
    }

    public void setPowerVal(long powerVal) {
        this.powerVal = powerVal;
    }

    public int getStateId() {
        return stateId;
    }

    public void setStateId(int stateId) {
        this.stateId = stateId;
    }

    public long getAttackedUserId() {
        return attackedUserId;
    }

    public void setAttackedUserId(long attackedUserId) {
        this.attackedUserId = attackedUserId;
    }

    public long getAttackedPowerVal() {
        return attackedPowerVal;
    }

    public void setAttackedPowerVal(long attackedPowerVal) {
        this.attackedPowerVal = attackedPowerVal;
    }

    public int getAttackedStateId() {
        return attackedStateId;
    }

    public void setAttackedStateId(int attackedStateId) {
        this.attackedStateId = attackedStateId;
    }

    public long getAddScore() {
        return addScore;
    }

    public void setAddScore(long addScore) {
        this.addScore = addScore;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
